package com.supervision.manage.mapper

import com.supervision.domain.bean.po.AdminSearchPO
import com.supervision.manage.mapper.sqlprovider.AdminSqlProvider
import com.supervision.domain.bean.vo.AdminVO
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Param
import org.apache.ibatis.annotations.SelectProvider
import org.springframework.stereotype.Component

@Mapper
@Component
interface AdminMapper {

    @SelectProvider(type = AdminSqlProvider::class, method = "getAdminList")
    fun getAdminList(@Param("po") po: AdminSearchPO, @Param("limitSql") limitSql: String): List<AdminVO>

    @SelectProvider(type = AdminSqlProvider::class, method = "getAdminList")
    fun countAdminList(@Param("po") po: AdminSearchPO, @Param("limitSql") limitSql: String): Int
}